package com.hong.collections.blocking;

import java.util.concurrent.LinkedTransferQueue;
import java.util.concurrent.TransferQueue;

/**
 * @Auther: Administrator
 * @Date: 2018/8/13 21:06
 * @Description:
 */
public class LinkedTransferQueueExample {
    /**
     * An unbounded {@link TransferQueue} based on lined nodes.
     * <p>
     *     Bounded
     *     Producer:when the capacity is full.the producer will blocked.
     *     else just only insert the new element into the queue,but the data is consume or not?
     *
     *     The TransferQueue is useful in scenario where message passing need to guaranteed
     *
     *
     *
     *
     * </p>
     * @param <T>
     * @return
     */
    public static <T> LinkedTransferQueue<T> create(){
        return new LinkedTransferQueue<>();
    }
}
